<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={dede:global.cfg_soft_lang/}" />

<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no,minimal-ui">
<meta name="apple-mobile-web-app-capable" content="no">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<meta name="format-detection" content="address=no">
<link rel="apple-touch-icon" href="http://192.168.1.101:9009{dede:global.cfg_templets_skin/}/image/boombeach117_117.png">

<meta name="description" content="{dede:global.cfg_description/}" />
<meta name="keywords" content="{dede:global.cfg_keywords/}" />

<title>{dede:global.cfg_webname/}</title>



<link href="{dede:global.cfg_templets_skin/}/style/index.css" rel="stylesheet" type="text/css">		
<link href="{dede:global.cfg_templets_skin/}/style/index2.css" rel="stylesheet" type="text/css">

</head>
<body class="index">

<div style="width:0px;height:0px;overflow:hidden"><img src="{dede:global.cfg_templets_skin/}/image/boombeach400_400.gif"></div>
<div id="mfw-main" class="">    
	<header class="m-head">
		<a href="{dede:global.cfg_cmsurl/}/" class="logo" style="padding-left:10px;">
			<img src="{dede:global.cfg_templets_skin/}/image/logo1.png" alt="" height="35" width="136">
		</a>
		<div class="bar-c">
			<a class="search-box" href="{dede:global.cfg_cmsurl/}/plus/heightsearch.php"></a>
		</div>
	</header>	    
		
	<div style="display: none;" class="pop-loading" id="pnl_preload" if="">
		<i></i>
		<p>加载中...</p>
	</div>
	<input id="recommend_last_time" value="2014-04-09 11:48:20" type="hidden">
	<section class="layout" style="width: 1360px;" data-cs-t="h5_home_blocks">
		<!--第一排 start-->
		<div style="width: 674px; height: 674px; top: 0px; left: 0px;" class="block block-A" w="2" h="2" t="0" l="0" data-cs-p="新闻攻略">
			<a href="{dede:global.cfg_cmsurl/}/plus/list.php?tid=1" id="btn_select_in"><span><b>新闻攻略</b></a>
		</div>

		<div style="width: 674px; height: 674px; top: 0px; left: 680px;" class="block block-C" w="2" h="2" t="0" l="2" data-cs-p="游戏视频">
			<a href="#">
				<img src="{dede:global.cfg_templets_skin/}/image/s1.png" alt="" width="100%">
				<span>游戏视频</span>
			</a>
		</div>
		<!--第一排 end-->
		<!--第二排 start-->
		<div style="width: 334px; height: 334px; top: 680px; left: 0px;" class="block block-Y" w="1" h="1" t="2" l="0" data-cs-p="建筑查询">
			<a href="#">
				<strong>建筑<br>查询</strong>
				<i id="ico_c1" class="mdd">
					<div></div>
					<em class="ico_bot"></em>
				</i>
			</a>
		</div>
		<div style="width: 334px; height: 334px; top: 680px; left: 340px;" class="block block-K" w="1" h="1" t="2" l="1" data-cs-p="神像查询">
			<a href="#">
				<strong>神像<br>查询</strong>
				<i id="ico_c2" class="mdd">
					<div></div>
					<em class="ico_bot"></em>
				</i>
			</a>
		</div>
        <div style="width: 334px; height: 334px; top: 680px; left: 680px;" class="block block-F" w="1" h="1" t="2" l="2" data-cs-p="兵种道具">
			<a href="#">
				<strong>兵种<br>道具</strong>
				<i id="ico_c4" class="mdd">
					<div></div>
					<em class="ico_bot"></em>
				</i>
			</a>
		</div>
		
		<div style="width: 334px; height: 334px; top: 680px; left: 1020px;" class="block block-X" w="1" h="1" t="2" l="3" data-cs-p="阵形攻略">
			<a href="#">
				<strong>阵形<br>攻略</strong>
				<i id="ico_c4" class="mdd">
					<div></div>
					<em class="ico_bot"></em>
				</i>
			</a>
		</div>
		<div style="width: 674px; height: 674px; top: 1020px; left: 0px;" class="block block-J" w="2" h="2" t="3" l="0" data-cs-p="酒店">
			<a href="#">
				<i id="ico_c2" class="mdd">
					<em class="ico_left"></em>
					<div></div>
				</i>
				<img src="{dede:global.cfg_templets_skin/}/image/p6.gif" alt="" width="100%">
				<span>订酒店</span>
			</a>
		</div>
		<!--第二排 end-->
		<!--第三排 start-->
        

		
        <div class="block block-W" w="2" h="2" t="3" l="2" data-cs-p="游记" style="background-color: rgb(255, 201, 93); width: 674px; height: 674px; top: 1020px; left: 680px;">
            <a href="#">
                <i id="ico_c3" class="mdd" style="left:60px;">
                    <em class="ico_right"></em>
                    <div></div>
                </i>
                <img src="{dede:global.cfg_templets_skin/}/image/wKgB6lPFMMWAOIqPAANq8cuK_gE49.jpg" alt="" width="100%">
                <span>游记</span>
            </a>
        </div>
		
		<!--第三排 end-->

		<!--第四排 start-->

		<div style="width: 1014px; height: 334px; top: 1700px; left: 0px;" class="block block-L" w="4" h="1" t="5" l="0" data-cs-p="APP">
			<a href="#"><span>一起高玩手机APP</span></a>
		</div>


        <!--第四排 end-->

		
		<footer class="footerBar" style="display: block; position: absolute; top: 2040px; left: 0px; width: 1354px;" t="5" l="0" data-cs-p="footer">			
			<div class="Lbtn">
				移动版<span>|</span><a data-cs-d="APP" href="#">APP</a><span>|</span><a href="#" data-cs-d="PC版">PC版</a>
			</div>
			<div class="Rbtn">
				<a href="javascript:;" onclick="window.scrollTo(0, 1);" class="clickstat" data-cs-d="返回顶部">返回顶部</a>
			</div>
		</footer>
	</section>

</div>
<div class="side-btns" id="float_section" style="display:none;">
    <a href="javascript:void(0);" id="gotop" class="totop"></a>
            <a href="{dede:global.cfg_cmsurl/}" class="tohome" onclick="gohome();" id="tohome">
            <i style="display:none;"></i>
        </a>
    </div>

<script language="javascript" src="{dede:global.cfg_templets_skin/}/js/mobilejszeptomobilejszepto.js" type="text/javascript"></script>


	<script>
		var single_size = 0;
		function layout_init() {
			$("#pnl_preload").show();
			single_size = Math.floor($(window).width() / 4) - 1;
			$("section.layout").hide().width(single_size * 4);
			$("div.block").each(function () {
				var l = parseInt($(this).attr('l'));
				var t = parseInt($(this).attr('t'));
				var w = parseInt($(this).attr('w'));
				var h = parseInt($(this).attr('h'));
				$(this).width(single_size * w - 6);
				$(this).height(single_size * h - 6);
				$(this).css({
					'top' : single_size * t,
					'left': single_size * l
				});
			});
            var limit=6;
            			$("footer.footerBar").css({
				'top' : single_size * limit,
				'left': single_size * 0,
                'width': single_size * 4 - 6
			});
			$("section.layout").show();
			$("#pnl_preload").hide();

		}

		$(function () {
			layout_init();
			$(window).on('resize', function () {
				layout_init();
			});
			$('#citylist').width($(window).width());


			/*
			//处理当季出发，mdd，最美推荐部分
			last_time = recommend_dao.getItem('last_time');
			if(!last_time || ($('#recommend_last_time').val() > last_time)){
				recommend_dao.setItem('new', 1);
			}
			$('#ico_c6').parent().on('click', function(e){
				var last_r = $('#recommend_last_time').val();
				if(last_r){
					recommend_dao.setItem('last_time', last_r);
					recommend_dao.setItem('new', 0);
				}
			});
			if(recommend_dao.getItem('new')){
				$('#ico_c6').show();
			}
			$('#ico_c7').parent().on('click', function(e){
				recommend_dao.setItem('zuimei', 0);
			});
			if(recommend_dao.getItem('zuimei')){
				$('#ico_c7').show();
			}
			$('#ico_c0').parent().on('click', function(e){
				recommend_dao.setItem('mdd', 0);
			});
			if(recommend_dao.getItem('mdd')){
				$('#ico_c0').show();
			}
			$('#ico_c1').parent().on('click', function(){
				recommend_dao.setItem('zhibo', 0);
			});
			if(recommend_dao.getItem('zhibo')){
				$('#ico_c1').children('div').text('推荐');
				$('#ico_c1').parent().attr('href', '/weng/tf24_new.php');
				$('#ico_c1').show();
			}
			$('#ico_c3').parent().on('click', function(){
				recommend_dao.setItem('youji', 0);
			});
			if(recommend_dao.getItem('youji')){
				$('#ico_c3').children('div').text('推荐');
				$('#ico_c3').show();
			}*/
            $('#ico_c0,#ico_c1,#ico_c2,#ico_c3,#ico_c4').parent().on('click', function(e){
				click_op_in.setItem($(this).children('.mdd').attr('id'), 0);
				click_op_want.setItem($(this).children('.mdd').attr('id'), 0);
			});
            function recordUserOp(selectType, mddid){
                $.post('/api/user_op_stats.php/add_mdd', {
                    type: selectType,
                    mddid: mddid
                },function(){ });

            }
			$("#pnl_history,#pnl_geo").on('click', 'a', function (e) {
				e.preventDefault();
				changeMdd($(this).text(), $(this).attr('val'), selectType);
				toggleSelectMdd();
                recordUserOp(selectType, $(this).attr('val'));
			});

			$("#ipt_mdd").autoCompletion({
				query   : '/public/api.php?s=suggest_mdd_with_id&q=',
				item    : '<li val="__val__"><a href="javascript:;">__text__</a></li>',
				onSelect: function (txt, val) {
					changeMdd(txt, val, selectType);
					toggleSelectMdd();

                    recordUserOp(selectType, val);
				}
			});

			$("#btn_select_want,#btn_select_in").on('click', function (e) {
				if (this.id == 'btn_select_in') {
					selectType = 'in';
				} else {
					selectType = 'want';
				}
				displayHistoryForHome();
				$("#ipt_mdd").val('');
				toggleSelectMdd();
				e.preventDefault();
			});
			var curTimeStamp =  Date.parse(new Date());
			var in_cached = true;
			if(localStorage.getItem('h5_select_in')){
				selectType = 'in';
				var context = JSON.parse(localStorage.getItem('h5_select_in'));
				if(context && context.timestamp){
					if(curTimeStamp - context.timestamp < 24 * 60 * 60 * 1000){
						changeMddWithoutSetAction(context.txt, context.id, selectType);
					}
				}else{
					in_cached = false;
				}
			}else{
				in_cached = false;
			}
            /*
			if(!in_cached){
				getLocation('first_time', function(data){
					if (data.id) {
						changeMddWithoutSetAction(data.name, data.id , 'in', changeAppHint=false);
					}
				});
			}*/

			if(localStorage.getItem('h5_select_want')){ //在一天内设置不同的
				selectType = 'want';
				var context = JSON.parse(localStorage.getItem('h5_select_want'));
				if(context && context.timestamp){
					if(curTimeStamp - context.timestamp < 24 * 60 * 60 * 1000)
						changeMddWithoutSetAction(context.txt, context.id, selectType);
				}
			}
		});
	</script>

</body>
</html>
